export default {
	methods: {
		showToastSuccess(content, isBack = false) {
			this.$refs["app-toast"].show({
				message: content || "",
				type: "success",
				position: "top",
				overlay: false,
				complete: () => {
					if (isBack) {
						this.toPage(-1)
					}
				},
			})
		},
		showToastError(content, isBack = false) {
			this.$refs["app-toast"].show({
				message: content || "",
				type: "error",
				position: "top",
				overlay: false,
				complete: () => {
					if (isBack) {
						this.toPage(-1)
					}
				},
			})
		},
	},
}
